<?php /* SVN: $Id: index.ctp 2740 2010-08-13 15:28:29Z aravindan_111act10 $ */ ?>
<div class="projectRatings index js-response">
<div class="l-curve-top">							
		<div class="r-curve-top">
				<div class="top-bg"></div>
		</div>
						</div>
						<div class="shad-bg-lft clearfix">
							<div class="shad-bg-rgt">
								<div class="shad-bg">
								<div class="main-section">
    <h2> <?php echo __l('Voters');?> </h2>
    <?php  $this->element('paging_counter');?>
    <ol class="comments-list list">
	<?php if (!empty($projectRatings)):?>       
        <?php
            $i = 0;
            foreach ($projectRatings as $projectRating):
                $class = null;
                if ($i++ % 2 == 0) :
                    $class = 'altrow';
                endif;
                ?>
                <li class="clearfix <?php echo $class;?>">
                    <div class="grid_1 alpha">
                        <?php echo $this->Html->getUserAvatar($projectRating['User']['id'],'small_thumb');?>
                        
                    </div>
                    <div class="grid_11">
					<div class="listing-head clearfix">
					<h3><?php echo $this->Html->link($this->Html->cText($projectRating['User']['username']), array('controller'=> 'users', 'action'=>'view', $projectRating['User']['username']), array('escape' => false));?></h3>
					<p class="date-block-info grid_right grid_right"><?php echo $this->Html->cDateTimeHighlight($projectRating['ProjectRating']['created']);?></p>
					</div>
					 	<div class="clearfix vote-count vote-count-small">
												<ul>
												<li>
													<span class="vote-count-value"><?php echo $this->Html->cInt($projectRating['ProjectRating']['rating'],false); ?></span>
												</li>
												</ul>
												</div>
					
                    </div>
                </li>
                <?php
            endforeach;
        else:
            ?>
            <li>
                <p class="notice"><?php echo __l('No Voters Available');?></p>
            </li>
            <?php
        endif;
        ?>
    </ol>
    <?php
    if (!empty($projectRatings)) :
        ?>
        <div class="js-pagination">
            <?php echo $this->element('paging_links'); ?>
        </div>
        <?php
    endif;
    echo $this->Form->end();

    ?>
	</div>
		</div>
							</div>
						</div>
						<div class="l-curve-bot">							
							<div class="r-curve-bot">
								<div class="bot-bg"></div>
							</div>
						</div>
</div>